package com.sy.mapper;

import com.sy.bean.Dict;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DictMapper extends IMapper<Dict> {
    List<Dict> queryD(String code);

    String queryMaxCode(String code);

    /**
     * 通过父id查询父code
     * @param code
     * @return
     */
    String queryParentCode(int id);
}
